package com.zzy.springbootdemo.design_05_singleton;

/**
 * 饿汉模式(线程安全)
 */
public class Singleton_01 {

    private static Singleton_01 singleton_01 = new Singleton_01();

    /**
     * 无参构造方法防止手动创建
     */
    private Singleton_01(){
    }

    public Singleton_01 getInstance(){
        return singleton_01;
    }


}
